import { Global, Module } from '@nestjs/common';
import { SocketService } from './socket.service';

@Global()
@Module({
  providers: [
    {
      provide: 'SocketService', // 使用字符串或类作为token
      useClass: SocketService,
    },
  ],
  exports: ['SocketService'], // 导出实例
})
export class SocketModule {}
